package ee.maoinvest.backend.model.dao;

import java.sql.Date;

public interface LatestDatesDAO 
{
	public Date getLatestDateWhileInsertingNewContractBetweenEnterpriseAndElectricityMeter(
			int contractID, int enterpriseID, int electricityMeterID);
	public Date getLatestDateWhileInsertingSubstationMainElectricityMeter(
			int substationID, int transformerCoefficentStandardID);
	public Date getLatestDateWhileInsertingLocalTerritoryElectricityMeter(int parentElectricityMeterID, int transformerCoefficentStandardID);
	public Date getLatestDateWhileInsertingOuterTerritoryElectricityMeter(
			int electricityContractID, int transformerCoefficentStandardID);
	public Date getLatestDateWhileDeletingElectricityMeterParentMeterIncluded(
			int electricityMeterIDChosenToDelete, int parentMeterIDOfMeterChosenToDelete);
	public Date getLatestDateWhileDeletingElectricityMeter(
			int electricityMeterIDChosenToDelete);
	public Date getLatestDateWhileChangingLocalTerritoryElectricityMeterParentMeter(
			int electricityMeterID,
			int parentMeterIDOfUnwiredChild,
			int parentElectricityMeterIDThatReplacesTheOldOne);
	public Date getLatestDateOfSubstationMainElectricityMeterToBeReplaced(int electricityMeterID);
	public Date getElectricityMeterLatestReadingDate(int electricityMeterID);
	public Date getLatestDateAmongstMetersTakingPartInRegularReading();
	
	public Date getLatestDateAfterWhatDataManipulationIsPossible();
}
